using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Awaken.CodeGen
{
    public class ManyToOne
    {
        protected Table currentTable;
        public Table CurrentTable
        {
            get { return currentTable; }
            set { currentTable = value; }
        }

        protected Table otherTable;
        public Table OtherTable
        {
            get { return otherTable; }
            set { otherTable = value; }
        }

        protected Column currentTableColumn;
        public Column CurrentTableColumn
        {
            get { return currentTableColumn; }
            set { currentTableColumn = value; }
        }

        protected Column otherTableColumn;
        public Column OtherTableColumn
        {
            get { return otherTableColumn; }
            set { otherTableColumn = value; }
        }

        public string OtherTableName
        {
            get { return OtherTable.TableName; }
        }

        public string OtherTableColumnName
        {
            get { return OtherTableColumn.ColumnName; }
        }

        public string OtherTableClassName
        {
            get { return OtherTable.ClassName; }
        }

        public string CurrentTableColumnName
        {
            get { return CurrentTableColumn.ColumnName; }
        }
    }
}
